<div ng-if="pagedata.showarea==1" class="popup">
	<div class="popup-body">
		<div class="popup-bottom" style="height:100%;overflow-y:scroll;padding-bottom:0">
			<div class="weui_cells weui_cells_access">
							<a class="weui_cell" href="javascript:;">
								<div class="weui_cell_bd weui_cell_primary" style="padding:0">
									<span>当前定位/选择地区：{{pagedata.params.city || '广州市'}}</span>
								</div>
								<div class="weui_cell_ft" ng-click="toogle(post,'show')">
									选择县区
								</div>
							</a>
							<div class="row margin0" ng-show="post.show">
									<div class="jy-3" ng-repeat="value in pagedata.province[pagedata.params.province][pagedata.params.city]">
										<div class="yuyue-duan" style="width:auto" ng-click="selectarea(pagedata.params.province,pagedata.params.city,value);pagedata.showarea = 0;">
												<div>{{value}}</div>
												<div class="clear"></div>
										</div>
									</div>
							</div>
						</div>
						<div class="weui_cells_title">热门地区</div>
						<div class="weui_cells">
							<div class="row margin0">
								<div class="jy-3">
										<div class="yuyue-duan" style="width:auto" ng-click="selectarea('广东省','深圳市','');pagedata.showarea = 0;">
												<div>深圳市</div>
												<div class="clear"></div>
										</div>
									</div>
									<div class="jy-3">
										<div class="yuyue-duan" style="width:auto" ng-click="selectarea('上海市','上海市','');pagedata.showarea = 0;">
												<div>上海市</div>
												<div class="clear"></div>
										</div>
									</div>
									<div class="jy-3">
										<div class="yuyue-duan" style="width:auto" ng-click="selectarea('广东省','东莞市','');pagedata.showarea = 0;">
												<div>东莞市</div>
												<div class="clear"></div>
										</div>
									</div>
									<div class="jy-3">
										<div class="yuyue-duan" style="width:auto" ng-click="selectarea('北京市','北京市','');pagedata.showarea = 0;">
												<div>北京市</div>
												<div class="clear"></div>
										</div>
									</div>
									<div class="jy-3">
										<div class="yuyue-duan" style="width:auto" ng-click="selectarea('江苏省','南京市','');pagedata.showarea = 0;">
												<div>南京市</div>
												<div class="clear"></div>
										</div>
									</div>
									<div class="jy-3">
										<div class="yuyue-duan" style="width:auto" ng-click="selectarea('江苏省','杭州市','');pagedata.showarea = 0;">
												<div>杭州市</div>
												<div class="clear"></div>
										</div>
									</div>
							</div>
						</div>
						<div ng-repeat="(value,data) in pagedata.province">
							<div class="weui_cells_title">{{value}}</div>
							<div class="weui_cells">
								<div class="row margin0">
									<div class="jy-3" ng-repeat="(city,data) in pagedata.province[value]">
											<div class="yuyue-duan" style="width:auto" ng-click="selectarea(value,city,'');pagedata.showarea = 0;">
													<div>{{city || '无'}}</div>
													<div class="clear"></div>
											</div>
									</div>
								</div>
							</div>
						</div>
		</div>
	</div>
</div>
<script>
scope.selectarea = function(province,city,district){
	scope.pagedata.params=scope.pagedata.params?scope.pagedata.params:{}
		scope.pagedata.params.province = province;
		scope.pagedata.params.city = city;
		scope.pagedata.params.district = district;
		scope.pagedata.getstorelist();
}
</script>